home *** CD-ROM | disk | FTP | other *** search
Text File | 1986-12-11 | 1.4 KB | 71 lines | [THED/THTH] |
- |
- | RA¬
- | String functions
- |
- | ⌐ 1986 COM~LINK & S.Koren
- |
- #M;
- "Ver 0.2 of RA now has the following!new string functions:!!"
- "query for string!string length!"
- "find substring!concatenate strings!"
- "insert substring!delete substring!copy substring"
- #A;
- "Enter any string : "
- └ | ask user for string
- Aá╢
- "!You entered the string: " A╢ áá
- "!The length of the string is: " A╢
- ü ! | print the length of the string
- "!Enter another string: "└
- Bá╢
- "!The second string was: " B╢ áá
- "!The length of the string is: " B╢ ü !"!"
- A╢ B╢ ╫ A: | find position of a in b
- A. [A╢ "'"áá"' was a substring of '" B╢ áá "'!in position " A. ! "!"]
- A.º [A╢ "'"áá "' was not a substring of '" B╢ áá"'!"]
- A╢ B╢
- « | concatenate the strings
-
- "'" Cá╢ C╢áá "' is the concatenated string.!"
- "Its length is " C╢ü ! "."
- #A;
- áaaaaaaá Aá╢ A╢ áá " is string A!"
- ábbbbá Bá╢ B╢ áá " is string B!"
- A╢ B╢ 3 á+ Cá╢ C╢ áá " is string A inserted !in string B at position 3.!"
- C╢ 3 3 á- áá " is that string with!"
- "positions 3 thru 6 deleted.!"
- áThis is a test stringá Aá╢
- A╢ áá
- "!"
- A╢ 2 7 áì "'"áá"'" " is the substring from !location 2 thru 7.!"
- #A;
- "THE END."
-
- $
- &A
- "!Hit any key: " ?ñ ╡ @`
- |
- | RA title routine
- |
- &M
- #P,5,5;
- #G,10,10;
- #L,225,10;
- #L,225,105;
- #L,10,105;
- #L,10,10;
- #O; #Q;`
-
- &G 1% 2% Ñ0A893╝ª `
- &L 1% 2% Ñ0A891╝ª `
- &O
- 40 100 ╜
- "RA¬"
- 60 40 ╜
- "⌐ 1986/7 COM~LINK & S.Koren"
- 80 60 ╜
- "All rights reserved." `
- &P 1% 2% Ñ0A89B╝ª `
- &Q ?ñ @ ╡`
- $
-